
export interface CategorySubDataType {
    msg: string;
    result: SubDataType;
}

export interface SubDataType {
    id: string;
    name: string;
    picture: null;
    parentId: string;
    parentName: string;
    goods: Good[];
    categories: Category[];
    brands: Brand[];
    saleProperties: SaleProperty[];
}

interface SaleProperty {
    id: string;
    name: string;
    properties: Property[];
}

interface Property {
    id: string;
    name: string;
}

interface Brand {
    id: string;
    name: string;
    nameEn: string;
    logo: string;
    picture: string;
    type: null;
    desc: string;
    place: string;
}

interface Category {
    id: string;
    name: string;
    layer: number;
    parent: null;
}

export interface Good {
    id: string;
    name: string;
    desc: string;
    price: string;
    picture: string;
    discount: null;
    orderNum: number;
}



export interface SelectCategorySubPostData {
    page: number;
    pageSize: number;
    categoryId: string;
    brandId: string | null;
    attrs: any;
    inventory: boolean,
    onlyDiscount: boolean,
    sortField: string | null,
    sortMethod: string | null,
}

export interface Attr {
    groupName: string;
    propertyName: string;
}



// 二级目录商品过滤
export interface SelectCategorySubResponse {
    msg: string;
    result: SelectCategorySubResult;
}

interface SelectCategorySubResult {
    counts: number;
    pageSize: number;
    pages: number;
    page: number;
    items: Item[];
}

interface Item {
    id: string;
    name: string;
    desc: string;
    price: string;
    picture: string;
    discount: null;
    orderNum: number;
}